package com.zj.project.activity

import android.os.Bundle
import com.zj.project.BR
import com.zj.project.R
import com.zj.project.common.base.BaseActivity
import com.zj.project.databinding.ActivityLoginBinding
import com.zj.project.viewmodel.LoginViewModel

/**
 * createTime:2021/7/26 16:57
 * auth:张继
 * des:
 */
class LoginActivity : BaseActivity<ActivityLoginBinding, LoginViewModel>() {

    override fun layoutId(): Int {
        return R.layout.activity_login
    }

    override fun initData(savedInstanceState: Bundle?) {
        viewModel.liveData.observe(this){
            finish()
        }
    }

    override fun variableId(): Int {
        return BR.login
    }
}